package com.zq.zhufengfm.entity.discoverrecommened;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Project_name : ZhuFengFM
 * Author : zhaoQiang
 * Date : 2015/10/21,11:36
 * Email : zhaoq_hero@163.com
 */
public class DiscoverRecommendItem {
    private String title;
    private boolean hasMore;

    public void parseJSON(JSONObject jsonObject) throws JSONException {

        //解析title和  hasMore

        if (jsonObject != null) {

            title= jsonObject.getString("title");

            hasMore = jsonObject.getBoolean("hasMore");

        }
    }



    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isHasMore() {
        return hasMore;
    }

    public void setHasMore(boolean hasMore) {
        this.hasMore = hasMore;
    }

    @Override
    public String toString() {
        return "DiscoverRecommendItem{" +
                "title='" + title + '\'' +
                ", hasMore=" + hasMore +
                '}';
    }
}
